from unittest import TestLoader,TextTestRunner

# 实例化
load = TestLoader()


# 自动查找满足条件的测试用例
tests = load.discover('./')

f = open('report.txt','w',encoding='utf-8')
# 运行
TextTestRunner(stream=f).run(tests)
